
public class Movie{
    public String name;
    public String director;
    public Integer year;
    public Integer rating;
    public boolean available = true;

    public Movie(String name, String director, Integer year, Integer rating){
        this.name = name;
        this.director = director;
        this.year = year;
        this.rating = rating;
    }

    public String getName(){
        return name;
    }

    public String getDirector(){
        return director;
    }

    public Integer getYear(){
        return year;
    }

    public Integer getRating(){
        return rating;
    }

    public boolean isAvailable(){
        return available;
    }

    public void setAvailable(boolean available){ //Set the availability of the book.
        this.available = available;
    }
}